﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
            function SetAdImage(imgUrl) {
                $('#adv-pp').css("background-image", "url(" + imgUrl + ")");
            }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="Index-Show">
  <div id="Index-box">
    <div id="Index-products">
    <div id="products-TITLE"></div>
    <div id="products-LIST">
      <ul class="Products-LIST-UL">
        <asp:Repeater ID="RepeaterProducts" runat="server">
            <ItemTemplate>
                <a href="products.aspx?node=<%# Eval("NodeId") %>"><li class="Products-LIST-LI"><%# Eval("Name")%></li></a>
            </ItemTemplate>
        </asp:Repeater>
      </ul>
    </div>
    
    <div id="Index-ADD">電話 : (07)625-1762　(07)626-2495　<br />
      信箱 : eqmblcor@yahoo.com.tw </div>
    
    <div id="Index-COPYRIGHT">皇家鋁門窗版權所有 <br />
    (C) 2013 Copyright  All Rights Reserved.</div>
  </div>
  
    <div id="news-down">
      <div id="Index-news-LINE"></div>
      <ul>
        <asp:Repeater ID="RepeaterNews" runat="server" onitemdatabound="RepeaterNews_ItemDataBound">
            <ItemTemplate>
                <a href='<%#String.Format("news-in.aspx?id={0}", DataBinder.Eval(Container,"DataItem.PostId"))%>'>
          <li class="index-newsLI"><asp:Label ID="lblTitle" runat="server" Text='<%# Bind("Title") %>'></asp:Label></li>
        </a>
            </ItemTemplate>
            </asp:Repeater>        
      </ul>
      <a href="news.aspx">
        <div id="index-more"></div>
      </a>
      <asp:Literal ID="ltlDivAds" runat="server"></asp:Literal>
      <div id="adv-more-txt">
        <ul>
        <asp:Repeater ID="RepeaterAds" runat="server">
            <ItemTemplate>
            <a href='<%# Eval("LinkUrl") %>' target="_blank">
            <li class="adv-number-LI" onmouseover="SetAdImage('<%#String.Format("upload/{0}", DataBinder.Eval(Container,"DataItem.PicFileName"))%>')"><%# Container.ItemIndex + 1 %></li>
          </a>
            </ItemTemplate>
        </asp:Repeater>        
        </ul>
      </div>
    </div>
    
  
  </div>
  <div id="black"></div>
</div>
</asp:Content>

